<template>
  <div style="text-align: center;">
    <div class="word">{{ count }}</div>
    <button @click="addCount">点击+1</button>
  </div>
</template>

<script setup>
import { ref } from 'vue';
const count = ref(0);
function addCount() {
  count.value += 1;
}
</script>

<style>
.word {
  font-size: 100px;
}
</style>